package com.lzh.chatnote.common.exception;

import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * 业务异常枚举值
 */
@AllArgsConstructor
@Getter
public enum BusinessErrorEnum implements ErrorEnums{
    SYSTEM_TEST_ERROR(1000,"系统测试错误"),
    SYSTEM_ERROR(1001, "系统出小差了，请稍后再试哦~~"),
    REQUEST_TOO_FREQUENTLY(1002, "请求太频繁，请稍后再试"),
    BUSINESS_ERROR(1003, "{0}"),
    ;

    private Integer code;
    private String msg;

    @Override
    public Integer getErrorCode() {
        return code;
    }

    @Override
    public String getErrorMsg() {
        return msg;
    }
}
